﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessLayer.Auction.Models
{
    public class AuctionModel
    {
        public int Sno { get; set; }
        public string Auction { get; set; }
        public string AuctionHouse { get; set; }
        public string Country { get; set; }
        public string City { get; set; }
        public string Fromdatht { get; set; }
        public string Todatht { get; set; }
        private string _url;

        //public string Url
        //{
        //    get { return _url; }
        //    set { _url = value; }
        //}
        public string Url
        {
            get { if ((!String.IsNullOrEmpty(_url)) && (!_url.ToLower().Contains("http://"))) return "http://" + _url; return _url; }
            set { _url = value; }
        }
    }
}
